//
//  NewReportV.m
//  UHealth
//
//  Created by hanyou on 15/3/26.
//  Copyright (c) 2015年 gjtx. All rights reserved.
//

#import "NewReportV.h"
#import "ServiceVC.h"

@implementation NewReportV

-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = kBacColor;
        [self initView];
    }
    return self;
    
}

-(void)initView{
    UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(30, 50, self.frame.size.width-60, 200)];
    label.numberOfLines = 0;
    label.text = kLocal(@"open_service_label");
    if (VIEW_3_5_INCH) {
        label.font = [UIFont systemFontOfSize:13];
    }else if (VIEW_4_INCH){
        label.font = [UIFont systemFontOfSize:14];
    }else{
        label.font = [UIFont systemFontOfSize:15];
    }
    [self addSubview:label];
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(30, label.frame.origin.y+label.frame.size.height+10, self.frame.size.width-60, 40);
    [button setTitle:kLocal(@"open_service") forState:UIControlStateNormal];
    [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [button.layer setMasksToBounds:YES];
    [button.layer setCornerRadius:1.0];
    button.backgroundColor = kBlueColor;
    [self addSubview:button];
    self.serviceBtn = button;

}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
